package com.minaClient.service;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;

public class DataModel {

	     //文件传输//系统监控参数//心跳检测
	public static final String   FILE_UPLOAD="FILE_UPLOAD",
								 SYS_CHEAK="SYS_CHEAK",
								 HEARTBIT="HEARTBIT";
	
	private String handlerType;

	public String getHandlerType() {
		return handlerType;
	}


	public void setHandlerType(String handlerType) {
		this.handlerType = handlerType;
	}

	
	public DataModel(String handlerType) {
		super();
		this.handlerType = handlerType;
	}



	static List<Object> heart=new ArrayList<>();
	public static String json(Object ob){
		heart.clear();
		heart.add(ob);
		return  JSON.toJSONString(ob);
	}
}
